#pragma once
#include "event.h"
#include <iostream>
#include "_socket.h"

class conn{
protected:
	tcp_socket tcp;
	struct event_base *main_base;
public:
	struct event netEvent;
public:
	conn();
	virtual ~conn();

	virtual void input() = 0;
	virtual void output() = 0;
	
};

class _timer{

public:
	struct event timeEvent;

public:
	_timer(){}
	virtual ~_timer(){}
	virtual void timeout() = 0;
};

